package com.java.simple.smallspring.beans.factory;

import com.java.simple.smallspring.beans.BeansException;

/**
 * @author zhoujunlin
 * @date 2022年08月17日 17:00
 * @desc
 */
public interface BeanFactory {

    Object getBean(String beanName) throws BeansException;

    Object getBean(String beanName, Object... args) throws BeansException;

    <T> T getBean(String beanName, Class<T> requiredType) throws BeansException;

    <T> T getBean(Class<T> requiredType) throws BeansException;

    boolean containsBean(String beanName);
}
